import Vue from 'vue'
import Vuex from 'vuex'
import comment from "./modules/comment";
import user from "./modules/user";

import createLogger from 'vuex/dist/logger'

const debug = process.env.NODE_ENV !== 'production'
Vue.use(Vuex)
export default new Vuex.Store({
    modules: {
        comment: comment,
        user: user
    },
    plugins: debug ? [createLogger()] : []
})
